Skip to content

Conversation

@andy1li
Copy link
Member

@andy1li andy1li commented Oct 27, 2025

Upgrade Zig to 0.15.2


Note

Upgrades Zig to 0.15.2, updates stdin reading to use a buffered reader with takeDelimiter, and adds a Dockerfile for the new version.

  • Build/Environment:
    • Upgrade Zig buildpack/version from zig-0.15 to zig-0.15.2 in compiled_starters/zig/codecrafters.yml and solutions/zig/01-cq2/code/codecrafters.yml.
    • Add dockerfiles/zig-0.15.2.Dockerfile to install Zig 0.15.2 and compile/cache the project.
  • Code (Zig):
    • Adopt buffered stdin (readerStreaming with stdin_buffer) and use stdin.takeDelimiter('\n').
    • Update usage to handle optional input (input_slice.?).
    • In solutions/zig/01-cq2/code/src/main.zig, enable reading/matching logic; in starter/compiled templates, reflect new approach in commented scaffold.

Written by Cursor Bugbot for commit 26f33da. This will update automatically on new commits. Configure here.

@andy1li andy1li merged commit 620ca05 into main Oct 28, 2025
23 checks passed
@andy1li andy1li deleted the upgrade-zig-0.15.2 branch October 28, 2025 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants